//
//  imagePropertyModel.m
//  PhotoCircle
//
//  Created by wujungao on 12/28/15.
//  Copyright © 2015 wujungao. All rights reserved.
//

#import "imagePropertyModel.h"

@implementation imagePropertyModel

-(instancetype)initImagePropertyModelWithDict:(NSDictionary *)dict{
    
    self=[super init];
    
    if(self){
        
        [self configModeWithDict:dict];
    }
    
    return self;
}

-(void)configModeWithDict:(NSDictionary *)dict{
   
    self.size=[dict objectForKey:@"size"];
    self.maker=[dict objectForKey:@"make"];
    self.deviceModel=[dict objectForKey:@"device"];
    self.date=[dict objectForKey:@"date_time"];
    self.exposureTime=[dict objectForKey:@"exposure_time"];
    self.apertureValue=[dict objectForKey:@"aperture_value"];
    self.focalLenght=[dict objectForKey:@"focal_lenght"];
    self.iso=[dict objectForKey:@"iso"];
    self.whiteBalance=[dict objectForKey:@"white_balance"];
    self.flash=[dict objectForKey:@"flash"];
}

@end
